<?php
/**
 * Created by PhpStorm.
 * User: qixiuxiu
 * Date: 2017/4/4
 * Time: 10:34
 */
require_once __DIR__ . '/vendor/autoload.php';//包容这个文件，可以允许类被自动加载

use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;

$request = Request::createFromGlobals();//createFromGlobals()方法基于当前PHP全局变量创建了一个Request对象。
$response = new Response();//使用response